import http from "@/api";
import { ResPage } from "@/api/interface";


/**
 * @name 系统职位列表分页查询
 */
export const jobListPaginationQuery = (params: any): Promise<any> => {
  return http.post<ResPage<any>>('/sysJob/pagingQueryForDocumentDeliveryManagement', params);
};


/**
 * @name 新增系统职位
 */
export const addJob = (params: any) => {
  return http.post('/sysJob/saveSysJob', params);
};

/**
 * @name 修改系统职位
 */
export const editJob = (params: any) => {
  return http.post('/sysJob/updateSysJob', params);
};

/**
 * @name 删除系统职位
 */
export const deleteJob = (params: any) => {
  return http.get(`/sysJob/deleteSysJob/${params}`);
};

/**
 * @name 获取系统职位详情
 */
export const getJobDetail = (params: any) => {
  return http.get(`/sysJob/querySysJob/${params}`);
};
